package top.songxs.yygh.hosp.msm.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.songxs.yygh.common.result.R;
import top.songxs.yygh.hosp.msm.service.MsmService;

@Api(tags = "短信发送服务")
@RestController
@RequestMapping("/api/msm")
public class MsmController {



    @Autowired
    MsmService msmService;


    @GetMapping("/send/{phone}")
    public R sendCode(@PathVariable String phone){
        msmService.sendCode(phone);
        return R.ok().message("验证码发送成功");
    }

}